import { AsrTaskEntity } from '../entities/asr-task.entity'

export enum AsrTaskType {
  TENCENT = 1,
  ALIYUN = 2,
}

export enum AsrTaskStatus {
  NOT_STARTED = 0,
  PROCESSING = 1,
  COMPLETED = 2,
  FAILED = 3,
}

export interface AsrTaskResult {
  id: number
  taskId: string
  url: string
  status: AsrTaskStatus
}

export interface TencentAsrResponse {
  RequestId: string
  TaskId: string
}

export interface AsrTaskPaginationResult {
  items: AsrTaskEntity[]
  total: number
  page: number
  pageSize: number
}
